<%@ page language="java" pageEncoding="utf-8"%>
<%@ taglib uri="/WEB-INF/struts-bean.tld" prefix="bean" %>
<%@ taglib uri="/WEB-INF/struts-html.tld" prefix="html" %>
<%@ taglib uri="/WEB-INF/struts-logic.tld" prefix="logic" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />

<title>news</title>
<link href="css/style.css" rel="stylesheet" type="text/css" />
</head>
<body>
<%@ include file="top.jsp"%>
<div class="comparebox">
  <div class="wzz"><a href="index.jsp">首页</a>&gt;<a>新闻中心</a></div>
  <div class="xzzbox">
    <div class="xztitle"><img src="images/new_03.jpg" alt="" /></div>
    <bean:define id="list" name= "PlaceView" property= "content" type= "java.util.List" ></bean:define> 
<bean:define id="pager" name= "PlaceView" property= "pager" type= "tools.Pager" ></bean:define> 
<bean:define id="hasNextPage" name= "pager" property= "hasNextPage" type= "java.lang.Boolean" ></bean:define> 
<bean:define id="hasPrePage" name= "pager" property= "hasPrePage" type= "java.lang.Boolean" ></bean:define> 
    <div class="about_new">
      <ul>
      <logic:iterate id="i" name= "list" > 
        <li><span>${i.update_time}</span><a target="_blank" href="<%=request.getContextPath()%>/show_news_detail.do?method=show_news_detail&id=${i.id}">${i.news_title}</a></li>
      </logic:iterate> 
      </ul>
    </div>
<div class="yejiao">
<logic:equal value="false" name= "hasPrePage" > 
<a><img src="images/pic_11.jpg" alt="" /></a> 
</logic:equal> 
<logic:equal value="true" name= "hasPrePage" > 
<a href="javascript:changePage(${pager.currentPage-1 })" mce_href= "javascript:changePage(${pager.currentPage-1 })" ><img src="images/pic_11.jpg" alt="" /></a>
</logic:equal> 
<a>${pager.currentPage } / ${pager.totalPage }</a> 
<logic:equal value="false" name= "hasNextPage" > 
<a><img src="images/pic_13.jpg" alt="" /></a> 
</logic:equal> 
<logic:equal value="true" name= "hasNextPage" > 
<a href="javascript:changePage(${pager.currentPage+1 })" mce_href= "javascript:changePage(${pager.currentPage+1 })" ><img src="images/pic_13.jpg" alt="" /></a>
</logic:equal>
</div>    
    <div class="clear"></div>
  </div>
</div>
<%@ include file="footer.jsp" %>
</body>
    <script type="text/javascript">
  function changePage(top){
     window.location.href="show_news_list.do?method=show_news_list&pageNum="+top;
  }
  </script>
</html>
